﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Model;

namespace InformationSystem.BLL.Core.Service
{
    public interface ISharedDocumentService
    {
        
        bool CreateDocument ( FileInformation finfo);

        bool DeleteDocument(int fileid, string userid);

        bool DeleteDocument(int fileid);


        /// <summary>
        /// 获取自己上传的文件
        /// </summary>
        /// <param name="userid">用户id</param>
        /// <returns></returns>
        IList<FileInformation> GetDocuments(string userid);

        /// <summary>
        /// 获取年级的共享文档
        /// </summary>
        /// <param name="collegeid"></param>
        /// <param name="gradeid"></param>
        /// <returns></returns>
        IList<FileInformation> GetDocuments(int collegeid, int gradeid);
        /// <summary>
        /// 获取年级 ，学院内共享，公共部门上传的文档信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        IList<FileInformation> GetDocuments(LoginUser user, int recordcount);
        /// <summary>
        /// 获取所选文件详细信息，为下载服务
        /// </summary>
        /// <param name="fileid"></param>
        /// <returns></returns>
        FileInformation GetDocumentDetailByID(int fileid);


    }
}
